package com.zkthink.ceres.member.dao;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zkthink.base.mapper.SuperMapper;
import com.zkthink.ceres.member.dto.RelationAccountSearchDTO;
import com.zkthink.ceres.member.entity.CeresRelationAcoount;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * 关联客户表
 * </p>
 *
 * @author ck
 * @date 2022-03-10
 */
@Repository
public interface CeresRelationAcoountMapper extends SuperMapper<CeresRelationAcoount> {


    void deleteRelationAccount(@Param("mainMid") Long mainMid, @Param("relationId") Long relationId);

    IPage<RelationAccountSearchDTO> searchRelationAccount(IPage page, @Param("mid") Long mid);

    List<CeresRelationAcoount> selectRealtionAccount(@Param("mainMid") Long mainMid, @Param("relationId") Long relationId);
}
